function StudentTable({ students }) {
    return (
        <table>
            <thead>
                <tr>
                    <th>学生ID</th>
                    <th>学生姓名</th>
                </tr>
            </thead>
            <tbody>
                {students.map(student => (
                    <tr key={student.student_id}>
                        <td>{student.student_id}</td>
                        <td>{student.student_name}</td>
                    </tr>
                ))}
            </tbody>
        </table>
    );
}

export default StudentTable;